package com.example.backend.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    @GetMapping("/")
    public String index() {
        return "redirect:/frontend/login.html";
    }

    @GetMapping("/login")
    public String login() {
        return "redirect:/frontend/login.html";
    }

    @GetMapping("/admin")
    public String admin() {
        return "redirect:/frontend/admin-dashboard.html";
    }

    @GetMapping("/agent")
    public String agent() {
        return "redirect:/frontend/agent-dashboard.html";
    }

    @GetMapping("/customer")
    public String customer() {
        return "redirect:/frontend/customer-dashboard.html";
    }
}
